<div>
    <div class="panel panel-default  m-n">
        <div class="panel-heading font-bold">修改验证</div>
        <div class="panel-body">
            <form name="checkCode"  class="ng-pristine ng-valid">
                <div class="m-b-xs">
                    <label>验证码(已发至{{data.phone}})</label>
                    <input type="text" class="form-control" name="oldCode" ng-model="data.oldPhoneCode" placeholder="输入手机验证码" required>
                </div>
                <div class="m-b-xs " ng-if="checkCode.oldCode.$touched">
                    <p class="block text-danger h6"  ng-if="checkCode.oldCode.$error.required">(验证码为必填项)</p>
                </div>
                <div class="text-right m-t">
                    <div>
                        <button type="submit" ng-disabled="checkCode.$invalid" ng-click="updateNowAccount()" class="btn m-b-xs w-xs btn-info">保存</button>
                        <button class="btn m-b-xs w-xs btn-default" ng-click="cancel()">取消</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>